package com.benyq.networkprogramme

import android.content.Context
import android.widget.RadioButton
import com.benyq.networkprogramme.base.adapter.BenyqBaseAdapter
import com.benyq.networkprogramme.base.adapter.BenyqRVHolder
import com.benyq.networkprogramme.base.bean.FileBean
import org.apache.commons.net.ftp.FTPFile

/**
 * @author benyq
 * @date 18-9-27 09:49
 * @E-mail： 1520063035@qq.com
 * @description
 */
class FtpFileAdapter(val context: Context): BenyqBaseAdapter<FileBean>(context, R.layout.item_file) {
    override fun convert(holder: BenyqRVHolder, position: Int, bean: FileBean) {
        holder.setText(R.id.tvFileName, bean.ftpFile.name)
        holder.getView<RadioButton>(R.id.rb).isChecked = bean.check

    }
}